import request from '@/api/request'
const token = localStorage.getItem('token')
export const myInfo = (username) => {
  return request({
    url: `/user/loginInfo/${username}`,
    method: 'GET',
    headers: {
      accept: 'application/json',
      Authorization: `Bearer ${token}`
    }
  })
}
